package org.xiaodongwei;

import org.xiaodongwei.config.HotSpotConfig;
import org.xiaodongwei.jvm.HotSpot;

/**
 * JVM虚拟机入口
 */
public class HotSpotMain {

    private static final String mainClass = "org.demo.Code";
    private static final String classPath = "/Users/weixiaodong/jvm/mini-java/target";
    private static final String catalog = "classes";

    public static void main(String[] args) throws Exception {
        // 加载配置
        System.out.println(HotSpotConfig.DEBUG);

        HotSpot hotSpot = new HotSpot(mainClass, classPath + "/" + catalog);
        hotSpot.start();
    }
}
